package com.lo.dao;

import com.lo.entity.Teacher;
import com.lo.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TeacherMapper {

//    int insert(Teacher teacher);
//    List<Teacher> selectByUsernameAndPassword(@Param("username") String username,@Param("password")String password);
    //检索审核通过课程
//    List<Teacher> selectByTidAndExamined(@Param("id") Long tid,@Param("search") String search);

    //检索未审核课程
//    List<Teacher> selectByTidAndNotExamine(@Param("id") Long tid,@Param("search") String search);
//    List<Teacher> selectById(@Param("id") Long id);

//    int updateTeacherMessage(Teacher teacher);

    //获取全部老师的信息——zzj
//    List<User> selectAllTeachers();
    //设置禁用
//    int updateIsBanned2One(@Param("id") Long id);
    //设置启用
//    int updateIsBanned2Zero(@Param("id") Long id);

    ///////////////////////////////////////////////
//    Long teacherCount();

//    Long teacherOrdinaryCount();

//    Long teacherVipCount();

/////////////////////////////////////////////////////////////
//    List<Teacher> selectByUsernameAndPhone(@Param("username") String username,@Param("phone") String phone);
    //根据用户名获取teacher
//    List<Teacher> selectTeacherByUsername(@Param("username") String username);
//    int updatePasswordById(@Param("id") Long id,@Param("password") String password);



}
